Optimal. Leaf size=116 \[ -\frac {x^{-5-3 n} \left (a x^2+b x^3\right )^{1+n}}{a (3+n)}+\frac {2 b x^{-4-3 n} \left (a x^2+b x^3\right )^{1+n}}{a^2 (2+n) (3+n)}-\frac {2 b^2 x^{-3 (1+n)} \left (a x^2+b x^3\right )^{1+n}}{a^3 (1+n) (2+n) (3+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2041, 2039}
\begin {gather*} -\frac {2 b^2 x^{-3 (n+1)} \left (a x^2+b x^3\right )^{n+1}}{a^3 (n+1) (n+2) (n+3)}+\frac {2 b x^{-3 n-4} \left (a x^2+b x^3\right )^{n+1}}{a^2 (n+2) (n+3)}-\frac {x^{-3 n-5} \left (a x^2+b x^3\right )^{n+1}}{a (n+3)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2039
Rule 2041
Rubi steps
\begin {align*} \int x^{-4-3 n} \left (a x^2+b x^3\right )^n \, dx &=-\frac {x^{-5-3 n} \left (a x^2+b x^3\right )^{1+n}}{a (3+n)}-\frac {(2 b) \int x^{-3-3 n} \left (a x^2+b x^3\right )^n \, dx}{a (3+n)}\\ &=-\frac {x^{-5-3 n} \left (a x^2+b x^3\right )^{1+n}}{a (3+n)}+\frac {2 b x^{-4-3 n} \left (a x^2+b x^3\right )^{1+n}}{a^2 (2+n) (3+n)}+\frac {\left (2 b^2\right ) \int x^{-2-3 n} \left (a x^2+b x^3\right )^n \, dx}{a^2 (2+n) (3+n)}\\ &=-\frac {x^{-5-3 n} \left (a x^2+b x^3\right )^{1+n}}{a (3+n)}+\frac {2 b x^{-4-3 n} \left (a x^2+b x^3\right )^{1+n}}{a^2 (2+n) (3+n)}-\frac {2 b^2 x^{-3 (1+n)} \left (a x^2+b x^3\right )^{1+n}}{a^3 (1+n) (2+n) (3+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 72, normalized size = 0.62 \begin {gather*} -\frac {x^{-3 (1+n)} (a+b x) \left (x^2 (a+b x)\right )^n \left (a^2 \left (2+3 n+n^2\right )-2 a b (1+n) x+2 b^2 x^2\right )}{a^3 (1+n) (2+n) (3+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.40, size = 84, normalized size = 0.72
method | result | size |
gosper | \(-\frac {\left (b x +a \right ) x^{-3-3 n} \left (a^{2} n^{2}-2 a b n x +2 b^{2} x^{2}+3 a^{2} n -2 a b x +2 a^{2}\right ) \left (b \,x^{3}+a \,x^{2}\right )^{n}}{\left (3+n \right ) \left (2+n \right ) \left (1+n \right ) a^{3}}\) | \(84\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.29, size = 111, normalized size = 0.96 \begin {gather*} \frac {{\left (2 \, a b^{2} n x^{3} - 2 \, b^{3} x^{4} - {\left (a^{2} b n^{2} + a^{2} b n\right )} x^{2} - {\left (a^{3} n^{2} + 3 \, a^{3} n + 2 \, a^{3}\right )} x\right )} {\left (b x^{3} + a x^{2}\right )}^{n} x^{-3 \, n - 4}}{a^{3} n^{3} + 6 \, a^{3} n^{2} + 11 \, a^{3} n + 6 \, a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{- 3 n - 4} \left (x^{2} \left (a + b x\right )\right )^{n}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.36, size = 157, normalized size = 1.35 \begin {gather*} -{\left (b\,x^3+a\,x^2\right )}^n\,\left (\frac {x\,\left (n^2+3\,n+2\right )}{x^{3\,n+4}\,\left (n^3+6\,n^2+11\,n+6\right )}+\frac {2\,b^3\,x^4}{a^3\,x^{3\,n+4}\,\left (n^3+6\,n^2+11\,n+6\right )}-\frac {2\,b^2\,n\,x^3}{a^2\,x^{3\,n+4}\,\left (n^3+6\,n^2+11\,n+6\right )}+\frac {b\,n\,x^2\,\left (n+1\right )}{a\,x^{3\,n+4}\,\left (n^3+6\,n^2+11\,n+6\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________